<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/16 0016
 * Time: 下午 8:00
 */
if(!empty($error)) ;?>
<html>
<head>
</head>
<body>
<form method="post">
  <table>
    <tr><td>欢迎登录</td></tr>
    <tr><th>用户名：</th><td><input type="text" name="username" /></td></tr>
    <tr><th>密码：</th><td><input type="password" name="password" /></td></tr>
    <tr><td>
        <input type="submit" value="登录" class="button" />
        <input type="reset" value="重新填写" class="button" />
      </td></tr>
  </table>
</form>
<div class="error-box">登录失败，错误信息如下：
  <ul><?php foreach ($error as $v)echo "<li>$v</li>"; ?></ul>
</div>
<?php endIf; ?>
</body>
</html>


